<?php
/*
* Copyright (c) 2010 by Cediti
*
* You may distribute under the terms of either the GNU Lesser General
* Public License or the new BSD License, as specified in the README file.
*/
// created :	18 March 2010
// version :	18 March 2010

/**
 * Indicates the support a repository has for updating a document's content stream.  Valid values are:
 *  none: The content stream may never be updated.
 *  anytime: The content stream may be updated any time.
 *  pwconly: The content stream may be updated only when checked out.
 */
class Cmis_Repository_Capability_ContentStreamUpdatability extends Cmis_Repository_Capability_Abstract
{
    const VALUE_NONE = 'none';
    const VALUE_ANYTIME = 'anytime';
    const VALUE_PWCONLY = 'pwconly';

    protected function _setValue($value)
    {
        $this->_value = trim($value);
        switch ($this->_value)
        {
            case self::VALUE_ANYTIME :
            case self::VALUE_PWCONLY :
            case self::VALUE_NONE :
                break;
            default:
                $this->_value = self::VALUE_NONE;
        }
    }
}

# EOF
